/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package grafrajz.utils;

import java.awt.Point;

/**
 *
 * @author adam_fejes_dell
 * Kirajzolható csúcs. A csúcs mellett tartalmazza a csúcs koordinátáit
 */
public class DrawableNode {
    private Node node;
    private Point pos;

    public DrawableNode(Node node, Point pos) {
        this.node = node;
        this.pos = pos;
    }

    public Node getNode() {
        return node;
    }

    public void setNode(Node node) {
        this.node = node;
    }

    public Point getPos() {
        return pos;
    }

    public void setPos(Point pos) {
        this.pos = pos;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final DrawableNode other = (DrawableNode) obj;
        if (this.node != other.node && (this.node == null || !this.node.equals(other.node))) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 47 * hash + (this.node != null ? this.node.hashCode() : 0);
        return hash;
    }

    
    
    
}
